import { Transform } from "class-transformer";
import { CreateRoleDto } from "./create-role.dto";

export class PublicRoleDto extends CreateRoleDto {
    @Transform(({ value }) => value.map((item: any) => item.permission.name))
    RolePermissions: any[]
}